// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   ByteBufferObjectPoolConfig.java

package org.quickserver.util.xmlreader;


// Referenced classes of package org.quickserver.util.xmlreader:
//            PoolConfig

public class ByteBufferObjectPoolConfig extends PoolConfig
{

    public ByteBufferObjectPoolConfig()
    {
    }

    public ByteBufferObjectPoolConfig(PoolConfig poolConfig)
    {
        setMaxActive(poolConfig.getMaxActive());
        setMaxIdle(poolConfig.getMaxIdle());
        setInitSize(poolConfig.getInitSize());
    }

    public String toXML(String pad)
    {
        if(pad == null)
            pad = "";
        StringBuilder sb = new StringBuilder();
        sb.append(pad).append("<byte-buffer-object-pool>\n");
        sb.append(pad).append("\t<max-active>").append(getMaxActive()).append("</max-active>\n");
        sb.append(pad).append("\t<max-idle>").append(getMaxIdle()).append("</max-idle>\n");
        sb.append(pad).append("\t<init-size>").append(getInitSize()).append("</init-size>\n");
        sb.append(pad).append("</byte-buffer-object-pool>\n");
        return sb.toString();
    }
}
